package com.example.doudou.demos.controller;

import com.example.doudou.demos.utils.RedisUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author fangtao
 * @Date 2024 09 27 15 42
 * @Description
 **/
@RestController
@RequestMapping("/base")
@Slf4j
@Api(tags = "基础控制层")
public class BaseController {
    @Autowired
    private RedisUtils redisUtils;



    @GetMapping("/hello")
    public String welcometo(){
        log.info("测试日志:{}","提示");
        log.debug("测试日志:{}","提示");
        log.warn("测试日志:{}","提示");
        log.error("测试日志:{}","提示");


        return "hello world";
    }

    @GetMapping("/login")
    public String login(){


        return "登录成功";
    }


}
